package com.cn.jinl.domain;

import com.cn.jinl.utils.CommonUtil;
import com.google.common.collect.ImmutableMap;

import java.util.Date;
import java.util.Map;

public class HealthCheck {
    private String id;

    private String checkTime;

    private Integer mothCount;

    private String endCheckTime;

    private String checkStatus;

    private String taskStatus;

    private String firstCheck;

    private String personnelId;

    private String checkInstitution;

    private String checkUserId;

    private String status;

    private Date createTime;

    private Date updateTime;

    //extra column
    private Date maxCreateTime;
    private String recorderName;

    private String jobCategory;
    private String deptName;
    private String jobNumber;
    private String employeeName;
    private String gender;
    private String onboardingStatus;

    public static final transient Map<String,String> BOARDINGSTAT = ImmutableMap.of("0","试用在职","1","合格在职","2","离职");
    public static final transient Map<String,String> JOBCATEGORY = ImmutableMap.of("A","管理","Y","操作");
    public static final transient Map<String,String> GENDER = ImmutableMap.of("M","男","F","女");

    public static final transient Map<String, String> STATUSMAP = ImmutableMap.of("1", "合格","2","不合格");
    public static final transient Map<String, String> TASKSTATUSMAP = ImmutableMap.of("1", "有效","2","临期","3","过期");


    public String getOnboardingStatusCn() {
        return BOARDINGSTAT.get(getOnboardingStatus());
    }
    public String getJobCategoryCn() {
        return JOBCATEGORY.get(getJobCategory());
    }
    public String getGenderCn() {
        return GENDER.get(getGender());
    }

    public Date getMaxCreateTime() {
        return maxCreateTime;
    }

    public void setMaxCreateTime(Date maxCreateTime) {
        this.maxCreateTime = maxCreateTime;
    }

    public String getJobCategory() {
        return jobCategory;
    }

    public void setJobCategory(String jobCategory) {
        this.jobCategory = jobCategory;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getJobNumber() {
        return jobNumber;
    }

    public void setJobNumber(String jobNumber) {
        this.jobNumber = jobNumber;
    }

    public String getEmployeeName() {
        return employeeName;
    }

    public void setEmployeeName(String employeeName) {
        this.employeeName = employeeName;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getRecorderName() {
        return recorderName;
    }

    public void setRecorderName(String recorderName) {
        this.recorderName = recorderName;
    }

    public String getOnboardingStatus() {
        return onboardingStatus;
    }

    public void setOnboardingStatus(String onboardingStatus) {
        this.onboardingStatus = onboardingStatus;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public String getCheckTime() {
        return checkTime;
    }

    public void setCheckTime(String checkTime) {
        this.checkTime = checkTime == null ? null : checkTime.trim();
    }

    public Integer getMothCount() {
        return mothCount;
    }

    public void setMothCount(Integer mothCount) {
        this.mothCount = mothCount;
    }

    public String getEndCheckTime() {
        return endCheckTime;
    }

    public void setEndCheckTime(String endCheckTime) {
        this.endCheckTime = endCheckTime == null ? null : endCheckTime.trim();
    }

    public String getCheckStatusCn() {
        return STATUSMAP.get(getCheckStatus());
    }
    public String getCheckStatus() {
        return checkStatus;
    }

    public void setCheckStatus(String checkStatus) {
        this.checkStatus = checkStatus == null ? null : checkStatus.trim();
    }

    public String getTaskStatusCn() {
        return TASKSTATUSMAP.get(getTaskStatus());
    }
    public String getTaskStatus() {
        return taskStatus;
    }

    public void setTaskStatus(String taskStatus) {
        this.taskStatus = taskStatus == null ? null : taskStatus.trim();
    }

    public String getFirstCheck() {
        return firstCheck;
    }

    public void setFirstCheck(String firstCheck) {
        this.firstCheck = firstCheck == null ? null : firstCheck.trim();
    }

    public String getPersonnelId() {
        return personnelId;
    }

    public void setPersonnelId(String personnelId) {
        this.personnelId = personnelId == null ? null : personnelId.trim();
    }

    public String getCheckInstitution() {
        return checkInstitution;
    }

    public void setCheckInstitution(String checkInstitution) {
        this.checkInstitution = checkInstitution == null ? null : checkInstitution.trim();
    }

    public String getCheckUserId() {
        return checkUserId;
    }

    public void setCheckUserId(String checkUserId) {
        this.checkUserId = checkUserId == null ? null : checkUserId.trim();
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status == null ? null : status.trim();
    }

    public String getCreateTimeFt() {
        String formatTime = CommonUtil.getStrTime(getCreateTime(),"yyyy-MM-dd");
        return formatTime;
    }
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
}